﻿package org.tools.att
{
	import	fl.containers.ScrollPane;
	import	flash.display.Stage;
	import	flash.events.Event;
	public class ReceiverFl extends ReceiverCore
	{
		private var	spReady:Boolean=false;
		private var	sp:ScrollPane=new ScrollPane();
		public function ReceiverFl()
		{
			super();
			sp.source=getChildAt(0);
			addChild(sp);
			setChildIndex(sp,0);
			spReady=true;
		}
		override	protected	function onResize(e:Event=null):void
		{
			super.onResize(e);
			sp.height=h;
			sp.width=w;
			if(!spReady)return;
			sp.update();
			write2Top?null:sp.verticalScrollPosition=sp.content.height-sp.verticalPageScrollSize;
		}
	}
}